//: C09:Evorder.cpp
// From Thinking in C++, 2nd Edition
// Available at http://www.BruceEckel.com
// (c) Bruce Eckel 1999
// Copyright notice in Copyright.txt
// Inline evaluation order

class Forward
{
    int i;
public:
    Forward() : i(0) {}
    // Call to undeclared function:
    int f() const {
        return g() + 1;
    }
    int g() const {
        return i;
    }
};

int main()
{
    Forward F;
    F.f();
} ///:~
